<?php

class Usuario extends MY_Model {


 
    function Usuario()
    {
        // Call the Model constructor
        parent::MY_Model();
	$this->nombreTabla = "usuario";
	$this->idT1= "idUsuario";
	$this->nombreCampo="userName";
		$this->campos[] = array("realname" => "idtipodeusuario",
					"clase" => "opciones",
					"label" => "Tipo",
					"modelo" => "tipodeusuario",
					"rules" => "required|integer");
		
		$this->campos[] = array("realname" => "userName",
					"clase" => "text",
					"label" => "NombreUsuario",
					"rules" => "required|alpha_dash|min_length[4]|max_length[45]");
		
		$this->campos[] = array("realname" => "password",
					"clase" => "password",
					"label" => "Password",
					"rules" => "required|alpha_numeric|min_length[4]|max_length[45]");
    }
     
 
}


?>
